package com.burgeon.backend.SHOPBACKEND.controller;

import com.burgeon.backend.SHOPBACKEND.service.BackendRefundService;
import com.burgeon.backend.stsutil.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@CrossOrigin
@RestController
@RequestMapping("backend/refund")
public class BackendRefundController extends BaseController{

    @Autowired
    private BackendRefundService backendRefundService;

    @RequestMapping("data")
    public ResponseResult<HashMap> businessCard (String account, Integer start) {
        HashMap data = backendRefundService.getData(account, start);
        return new ResponseResult<HashMap>(SUCCESS,data);
    }



}
